package com.mvc.vo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="tb_user")
public class User implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	private String id;
	@Column(name="userName",length=100)
	private String userName;
	@Column(name="passWord",length=100)
	private String passWord;
	@Column(name="age",length=11)
	private Integer age;
	@Column(name="gender",length=4)
	private String gender;
	
	public User() {
		super();
	}
	public User(String id, String userName, String passWord, Integer age,
			String gender) {
		super();
		this.id = id;
		this.userName = userName;
		this.passWord = passWord;
		this.age = age;
		this.gender = gender;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
}
